package org.jsola.hr.web;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.jsola.core.Page;
import org.jsola.core.Result;
import org.jsola.hr.dto.AttendanceDataRecordAddDTO;
import org.jsola.hr.dto.AttendanceDataRecordUpdateDTO;
import org.jsola.hr.query.AttendanceDataRecordQuery;
import org.jsola.hr.vo.AttendanceDataRecordListVO;
import org.jsola.hr.vo.AttendanceDataRecordVO;

import java.util.List;

/**
 * 考勤导入记录表
 *
 * @author zhr
 */
@Api(tags = "hr-考勤导入记录表")
public interface IAttendanceDataRecordControllerAPI {

    /**
     * 工时导入表列表详情
     * @param attendanceDataRecordQuery 考勤导入记录表查询参数
     * @return page
     */
    @ApiOperation(value="工时导入表列表详情")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendanceDataRecordQuery", dataType = "AttendanceDataRecordQuery", value = "考勤导入记录表查询参数", paramType = "query")
    })
    Result<Page<AttendanceDataRecordListVO>> pageList(AttendanceDataRecordQuery attendanceDataRecordQuery);

    /**
     * 新增考勤导入记录表
     * @param attendanceDataRecordAddDTO 考勤导入记录表新增实体
     * @return 考勤导入记录表展示对象
     */
    @ApiOperation(value = "新增考勤导入记录表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendanceDataRecordAddDTO", dataType = "AttendanceDataRecordAddDTO", value = "新增考勤导入记录表", paramType = "body")
    })
    Result<AttendanceDataRecordVO> save(AttendanceDataRecordAddDTO attendanceDataRecordAddDTO);


    /**
     * 修改考勤导入记录表
     * @param attendanceDataRecordUpdateDTO 考勤导入记录表
     * @return 更新数量
     */
    @ApiOperation(value = "修改考勤导入记录表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendanceDataRecordUpdateDTO", dataType = "AttendanceDataRecordUpdateDTO", value = "修改考勤导入记录表", paramType = "body")
    })
    Result<Integer> update(AttendanceDataRecordUpdateDTO attendanceDataRecordUpdateDTO);




    /**
     * 删除单个考勤导入记录表，彻底删除
     * @param attendanceDataRecordId 考勤导入记录表id
     * @return 删除数量
     */
    @ApiOperation(value="删除单个考勤导入记录表，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendanceDataRecordId", dataType = "String", value = "考勤导入记录表id", paramType = "path")
    })
    Result<Integer> delete(String attendanceDataRecordId);


    /**
     * 批量删除考勤导入记录表，彻底删除
     * @param attendanceDataRecordIds 考勤导入记录表id集合
     * @return 删除数量
     */
    @ApiOperation(value = "批量删除考勤导入记录表，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendanceDataRecordIds", dataType = "String[]", value = "考勤导入记录表id数组", paramType = "body" ,allowMultiple = true)
    })
    Result<Integer> deleteBatch(String[] attendanceDataRecordIds);


    /**
     * 根据考勤导入记录表id查询考勤导入记录表详情
     * @param attendanceDataRecordId 考勤导入记录表id
     * @return 考勤导入记录表详情
     */
    @ApiOperation(value="根据考勤导入记录表id查询考勤导入记录表详情")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendanceDataRecordId", dataType = "String", value = "考勤导入记录表id", paramType = "path")
    })
    Result<AttendanceDataRecordVO> findById(String attendanceDataRecordId);


    /**
     * 查询考勤导入记录表
     * @param attendanceDataRecordQuery 考勤导入记录表查询参数
     * @return page
     */
    @ApiOperation(value="查询考勤导入记录表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendanceDataRecordQuery", dataType = "AttendanceDataRecordQuery", value = "考勤导入记录表查询参数", paramType = "query")
    })
    Result<List<AttendanceDataRecordListVO>> listAll(AttendanceDataRecordQuery attendanceDataRecordQuery);


     /**
     * 分页查询考勤导入记录表
     * @param attendanceDataRecordQuery 考勤导入记录表查询参数
     * @return page
     */
    @ApiOperation(value="分页查询考勤导入记录表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendanceDataRecordQuery", dataType = "AttendanceDataRecordQuery", value = "考勤导入记录表查询参数", paramType = "query")
    })
    Result<Page<AttendanceDataRecordListVO>> page(AttendanceDataRecordQuery attendanceDataRecordQuery);


}

